import QtQuick 1.0

XmlListModel {
    id: root
    property string searchQuery
    property int countPerPage: 20
    source: searchQuery.length > 0 ? "http://api.atnd.org/events/users/?count=" +countPerPage + "&" + searchQuery : ''
    query: "/hash/events/event/users/user"

    onSourceChanged: console.debug(source)
    XmlRole { name: "user_id"; query: "user_id/number()"; isKey: true }
    XmlRole { name: "nickname"; query: "nickname/string()" }
    XmlRole { name: "twitter_id"; query: "twitter_id/string()" }
    XmlRole { name: "twitter_img"; query: "twitter_img/string()" }
    XmlRole { name: "status"; query: "status/number()" }
}
